package com.baizhi.service.impl;

import com.baizhi.dao.ItemDao;
import com.baizhi.entity.Item;
import com.baizhi.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ItemServiceImpl implements ItemService {
    @Autowired
    private ItemDao itemDao;
    @Override
    public List<Item> selectItemByOrderId(Integer orderId) {
        List<Item> items = itemDao.selectItemByOrderId(orderId);
        return items;
    }
}
